Sync repo CI/CD and docs to ProjectTemplate standards#130
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Synchronizes this repository’s CI/CD workflows and contributor-facing documentation with the ptr727/ProjectTemplate standards, including dual-branch automation (main/develop) and more deterministic bot-driven merges/releases.
Changes:
- Updated GitHub Actions workflows to SHA-pin actions, align naming/conposition conventions, and adjust release/codegen/merge-bot behavior for a main+develop branch model.
- Expanded Dependabot configuration to open parallel update PRs against both
mainanddevelop. - Refreshed contributor/agent documentation (AGENTS/README/Copilot instructions) to codify branching, review, and workflow conventions.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds a Contributing section documenting the two-branch workflow and required secrets. |
| AGENTS.md | Replaces/expands agent guidance with authoritative branching, review etiquette, and workflow conventions. |
| .github/workflows/test-release-task.yml | Pins actions and hardens shell execution for the reusable “test release” workflow. |
| .github/workflows/test-pull-request.yml | Updates PR branch filters for the new codegen branch names and hardens shell execution. |
| .github/workflows/run-periodic-codegen-pull-request.yml | Updates scheduling workflow to call the new matrix codegen task and adjusts concurrency. |
| .github/workflows/run-codegen-pull-request-task.yml | Refactors codegen into a main/develop matrix using an App token and removes the close/reopen dance. |
| .github/workflows/merge-bot-pull-request.yml | Reworks merge-bot into a 3-job model with App token usage and base-branch-dispatched merge method. |
| .github/workflows/get-version-task.yml | Pins actions and documents the intentional dotnet/nbgv@master exception. |
| .github/workflows/build-release-task.yml | Pins actions and fixes release tagging via explicit target_commitish, plus prerelease logic. |
| .github/workflows/build-library-task.yml | Pins actions, hardens shell execution, and updates branch-based configuration selection. |
| .github/workflows/build-datebadge-task.yml | Pins BYOB action and hardens shell execution; gates badge updates to main. |
| .github/dependabot.yml | Dual-targets main + develop for nuget and github-actions with grouped daily updates. |
| .github/copilot-instructions.md | Prepends a Copilot review runbook and points to AGENTS.md as canonical process guidance. |
Codegen task always writes to fixed branches `codegen-main` and `codegen-develop`. Ref-scoped concurrency would let a `workflow_dispatch` from a non-default ref race with the scheduled run.
…rge-bot trigger - AGENTS.md: soften 'single source of truth' to acknowledge that copilot-instructions.md owns review mechanics by explicit delegation and README's high-level summary is allowed. - merge-bot: switch trigger from pull_request to pull_request_target so action SHAs used to mint App-token come from the trusted base ref, not from a (possibly unreviewed) PR head. Workflow never checks out PR code so the standard pull_request_target warning doesn't apply.
publish-release.yml fires on push to both main and develop and passes `nuget: true` either way, but the build configuration was gated on `ref_name == 'main'` — so Debug-built NuGet packages were being pushed as develop pre-releases. Switch the gate to `inputs.push` so any publish run uses Release; non-publishing test runs still build Debug.
6 tasks
ptr727
added a commit
that referenced
this pull request
May 12, 2026
Release: sync to ProjectTemplate standards (#130)
ptr727
added a commit
that referenced
this pull request
May 12, 2026
The GitHub App credential secret is stored as `CODEGEN_APP_CLIENT_ID` in both Actions and Dependabot stores, but the workflows that landed in #130 referenced `CODEGEN_APP_ID` (the template's name). With the wrong name, `actions/create-github-app-token` gets an empty `app-id` and the merge-bot + codegen fail on first invocation. `actions/create-github-app-token` v1.12+ accepts either an App ID or a Client ID at the `app-id` input, so this is a pure secret-lookup fix.
This was referenced May 13, 2026
3 tasks
This was referenced May 14, 2026
This was referenced Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-syncs this repo's CI/CD and contributor docs to the current
ptr727/ProjectTemplatestandards.Mainruleset (merge-only, no linear history, status checks non-strict) + existing ruleset narrowed toDevelop(squash-only, linear history, strict).--squashon develop,--mergeon main),cancel-in-progress: false.main/developproducingcodegen-main/codegen-developPRs, App token, close/reopen dance removed.target_commitish: ${{ github.sha }}; prerelease viagithub.ref_name.dotnet/nbgv@masteris a documented exception).AGENTS.mdadopts template sections (Git rules, branching, PR conventions, review etiquette, workflow YAML conventions)..github/copilot-instructions.mdprepended with Copilot Review Runbook.README.mdadds Contributing section (branching + repo setup).Old
WORKFLOW_PATsecret andcodegenbranch can be deleted after this lands.Test plan
codegen-main→ main andcodegen-develop→ develop PRs.